package com.xca.daggerdemo.module;

import android.content.Context;

import com.xca.daggerdemo.entity.Course;
import com.xca.daggerdemo.entity.Student;
import com.xca.daggerdemo.utils.SpUtils;

import dagger.Module;
import dagger.Provides;
import jakarta.inject.Singleton;

@Module
public class StudentModule {
    //@Singleton
    @Provides
    public Student studentProvider() {
        return new Student();
    }
    @Provides
    public Course courseProvider(){return new Course() ; }


    @Provides
    @Singleton
    static SpUtils provideSpUtils(Context context) {
        return SpUtils.getInstance(context);
    }
}
